//
//  ViewController.m
//  GitDemo
//
//  Created by 王强 on 16/1/26.
//  Copyright © 2016年 王强. All rights reserved.
//

#import "ViewController.h"
#import "OneView.h"
#import "GreenView.h"
#import "BlueView.h"

@interface ViewController ()

@property (nonatomic, strong) OneView *redView;


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    NSLog(@"%d",1);
    
    _redView = [[OneView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];
    _redView.backgroundColor = [UIColor redColor];
    [self.view addSubview:_redView];
    

    GreenView *greenView = [[GreenView alloc] initWithFrame:CGRectMake(200, 50, 100, 100)];
    greenView.backgroundColor = [UIColor greenColor];
    [self.view addSubview:greenView];
    
    BlueView *blueView = [[BlueView alloc] initWithFrame:CGRectMake(50, 200, 100, 100)];
    blueView.backgroundColor = [UIColor blueColor];
    [self.view addSubview:blueView];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
